package io.renren.modules.generator.service;

import io.renren.modules.generator.entity.TermEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-11-23 22:26:16
 */
public interface TermService {
	
	TermEntity queryObject(Integer code);
	
	List<TermEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(TermEntity term);
	
	void update(TermEntity term);
	
	void delete(Integer code);
	
	void deleteBatch(Integer[] codes);

	List<TermEntity> findAllTerm();
}
